﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ARchGL.Platform.Core;
using ARchGL.Platform.EntityFrameworkCore;

namespace ARchGL.Platform.Mappings
{
    public class AppVersionsMapping : IEntityTypeConfiguration<AppVersions>
    {
        public void Configure(EntityTypeBuilder<AppVersions> builder)
        {
            //builder.ToTable(MappingConsts.Prefix + nameof(AppVersions));

            builder.Property(p => p.Version).HasMaxLength(50);
            builder.Property(p => p.Content).HasMaxLength(4000);
            builder.Property(p => p.NextContent).HasMaxLength(4000);
            builder.Property(p => p.Url).HasMaxLength(500); 
        }
    }
}
